package com.xiaoshuidi.cloud.module.finance.controller.admin.invoice.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class FinanceInvoiceTaxRateVO {
    @Schema(description = "费项id")
    @NotNull(message = "费项id不能为空")
    private Integer feeId;
    @Schema(description = "费项名称")
    @NotNull(message = "费项名称不能为空")
    private String feeName;
    @Schema(description = "费用名称")
    @NotNull(message = "费用名称不能为空")
    private String name;
    @Schema(description = "税收分类编码")
    @NotNull(message = "税收分类编码不能为空")
    private String taxCategoryNo;
    @Schema(description = "商品名称")
    @NotNull(message = "商品名称不能为空")
    private String goodsName;
    @Schema(description = "税率(两位小数, 9% = 0.09)")
    @DecimalMin(value = "0", message = "税率最小为0")
    @DecimalMin(value = "1", message = "税率最大为1")
    @NotNull(message = "税率不能为空")
    private BigDecimal taxRate;
}
